package com.xinsoft.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinsoft.entity.dto.*;
import com.xinsoft.entity.po.MesProcessDetailDeviceRef;
import com.xinsoft.entity.po.MesProcessDetailTeamUserRef;
import com.xinsoft.entity.po.MesProcessPlan;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author hsm
* @description 针对表【mes_process_plan(工序计划)】的数据库操作Mapper
* @createDate 2023-09-13 15:26:38
* @Entity MesProcessDetailTeamUserRefMapper
*/
public interface MesProcessPlanMapper extends BaseMapper<MesProcessPlan> {


    IPage<MesProcessPlanDTO> findListByParam(Page<?> page, @Param("param") MesProcessPlanParam param);

    MesProcessPlanDTO findTotalByParam(@Param("param") MesProcessPlanParam param);

    public MesProcessPlanDTO findInfoById(@Param("id") Integer id);

    public List<MesProcessDetailTeamUserRef> getMesProcessDetailTeamUserRef(@Param("craftProcessId") Integer craftProcessId, @Param("detailId") Integer detailId);

    public List<MesProcessDetailDeviceRef> getMesProcessDetailDeviceRef(@Param("craftProcessId") Integer craftProcessId, @Param("detailId") Integer detailId);



}




